# -*- coding: utf-8 -*-
"""
--------------------------------------------
    Author:  niuqt
    Date:  8/17/2022 
--------------------------------------------
"""
# wenssh 使用的 一个路由 配置文件
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from app01.tools.channel import routing

application = ProtocolTypeRouter({
    'websocket': AuthMiddlewareStack(
        URLRouter(
            routing.websocket_urlpatterns,
        )
    ),
})